1.1 标准正态分布
twoway function y=normalden(x),range(-5 5) xline(0) ytitle("概率密度")
1.2 正态分布
twoway function z=normalden(x,1,2),range(-5 10) xline(1) ytitle("概率密度")
2.t分布
twoway function t=tden(1,x),range(-5 5) /// || function y=normalden(x),range(-5 5) xline(0) ytitle("概率密度")
3.卡方分布
twoway function chi3=chi2den(3,x),range(0 20) /// || function chi5=chi2den(5,x),range(0 20) lp(dash) ytitle("概率密度")
4.F分布
twoway function F20=Fden(10,20,x),range(0 5) /// || function F5=Fden(10,5,x),range(0 5) lp(dash) ytitle("概率密度")
chap5.1_t检验与F检验 download
test
test x test x1 x2 x3
test x = 0 test x = c
test x1 = x2
test a*x1 + b*x2 = c
lincom a*x1 + b*x2 //"=" not allowed in expression
testnl _b[x]/_b[x] = c //chi2
nlcom _b[x]/_b[x] - c //z
ttest
ttest x == c
ttest x == y
ttest x, by(group)
ftest
lmtest
lrtest